package com.resys.entity.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.math.BigDecimal;
import java.util.Date;
import com.resys.entity.enums.DateTimePatternEnum;
import com.resys.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 
 */
public class Meetingroom implements Serializable {


	/**
	 * 
	 */
	private Integer roomId;

	/**
	 * 
	 */
	private String name;

	/**
	 * 0=教室型, 1=圆桌型
	 */
	private Integer type;

	/**
	 * 
	 */
	private Integer capacity;

	/**
	 * 
	 */
	private BigDecimal pricePerHour;

	/**
	 * 0=空闲, 1=锁定, 2=预定, 3=使用, 4=维护
	 */
	private Integer status;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date statusUpdatedAt;


	public void setRoomId(Integer roomId){
		this.roomId = roomId;
	}

	public Integer getRoomId(){
		return this.roomId;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getName(){
		return this.name;
	}

	public void setType(Integer type){
		this.type = type;
	}

	public Integer getType(){
		return this.type;
	}

	public void setCapacity(Integer capacity){
		this.capacity = capacity;
	}

	public Integer getCapacity(){
		return this.capacity;
	}

	public void setPricePerHour(BigDecimal pricePerHour){
		this.pricePerHour = pricePerHour;
	}

	public BigDecimal getPricePerHour(){
		return this.pricePerHour;
	}

	public void setStatus(Integer status){
		this.status = status;
	}

	public Integer getStatus(){
		return this.status;
	}

	public void setStatusUpdatedAt(Date statusUpdatedAt){
		this.statusUpdatedAt = statusUpdatedAt;
	}

	public Date getStatusUpdatedAt(){
		return this.statusUpdatedAt;
	}

	@Override
	public String toString (){
		return "roomId:"+(roomId == null ? "空" : roomId)+"，name:"+(name == null ? "空" : name)+"，0=教室型, 1=圆桌型:"+(type == null ? "空" : type)+"，capacity:"+(capacity == null ? "空" : capacity)+"，pricePerHour:"+(pricePerHour == null ? "空" : pricePerHour)+"，0=空闲, 1=锁定, 2=预定, 3=使用, 4=维护:"+(status == null ? "空" : status)+"，statusUpdatedAt:"+(statusUpdatedAt == null ? "空" : DateUtil.format(statusUpdatedAt, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()));
	}
}
